cmake_minimum_required (VERSION 2.8.7)
project (examples)

###
# variables
###
set(PROJECT_ROOT_DIR ${PROJECT_SOURCE_DIR}/../)
set(SOURCES_DIRECTORY ./)
set(INCLUDES_DIRECTORY ../include)

###
# includes
###
include_directories(
    .
    ${INCLUDES_DIRECTORY}
)

###
# libraries
###
link_directories("${PROJECT_ROOT_DIR}/library")

###
# outputs
###

set(LIBRARY_OUTPUT_PATH ${PROJECT_ROOT_DIR}/library)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_ROOT_DIR}/bin)

###
# compilation options
###
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -W -Wall -Wextra")


add_executable(single_udp  ${SOURCES_DIRECTORY}/single_udp.cpp)
# target_link_libraries(single_udp TATCP)

# add_executable(epoll_rb_server  ${SOURCES_DIRECTORY}/epoll_rb_server.c)
# target_link_libraries(epoll_rb_server TATCP)

# add_executable(epoll_server  ${SOURCES_DIRECTORY}/epoll_server.c)
# target_link_libraries(epoll_server TATCP)

# add_executable(posix_block_server  ${SOURCES_DIRECTORY}/posix_block_server.c)
# target_link_libraries(posix_block_server TATCP)

add_executable(test  ${SOURCES_DIRECTORY}/test.cpp)
target_link_libraries(test TATCP)

# add_executable(tcp_server  ${SOURCES_DIRECTORY}/tcp_server.c)
# target_link_libraries(tcp_server TATCP)